package com.example.shixun.service.impl;

import com.example.shixun.dao.LessonResourceDao;
import com.example.shixun.pojo.LessonResource;
import com.example.shixun.service.LessonResourceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LessonResourceServiceImpl implements LessonResourceService {
    @Resource
    LessonResourceDao lessonResourceDao;

    @Override
    public Integer saveLessonResource(LessonResource lessonResource) {
        return lessonResourceDao.saveLessonResource(lessonResource);
    }

    @Override
    public List<LessonResource> selectLessonResourceByLessonId(Integer lessonId) {
        return lessonResourceDao.selectLessonResourceByLessonId(lessonId);
    }

    @Override
    public List<LessonResource> selectLessonResourceById(Integer id) {
        return lessonResourceDao.selectLessonResourceById(id);
    }

    @Override
    public Integer deleteLessonResourceById(Integer id) {
        return lessonResourceDao.deleteLessonResourceById(id);
    }

    @Override
    public Integer recoverLessonResourceById(Integer id) {
        return lessonResourceDao.recoverLessonResourceById(id);
    }

    @Override
    public Integer updateLessonResourceById(LessonResource lessonResource) {
        return lessonResourceDao.updateLessonResourceById(lessonResource);
    }
}
